package com.example.mygame.myfive;

import com.example.mygame.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MyFiveActivity extends Activity {
	
	private Button bt_gButton;
	private MyFiveView myFiveView;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.myfivemain);
		
		bt_gButton = (Button)findViewById(R.id.bt_goback);
		myFiveView = (MyFiveView)findViewById(R.id.myFiveView1);
		bt_gButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				myFiveView.goBack();
				bt_gButton.setEnabled(false);
			}
		});
	}
	
	public void setBtEnable(boolean b) {
		bt_gButton.setEnabled(b);
	}
}
